import "./assets/main.css";
import { createApp } from "vue";
import { createPinia } from "pinia";
import App from "./App.vue";
import router from "./router";
import Vant from "vant";
import "vant/lib/index.css";
import myPlugin from "./components/index.js";
import Vconsole from "vconsole"; // 引入 vconsole

const app = createApp(App);

app.use(createPinia());
app.use(Vant);
app.use(router);
app.use(myPlugin, { name: "myPlugin" });

app.mount("#app");

if (import.meta.env.DEV) {
  new Vconsole(); // 如所有环境均需开启 则不需要判断
}
